import Https from "@/utils/Https";
import Https2 from "@/utils/Https2";

export const queryPageDataReq = async (params) =>
  await Https.get("/employee/manage/showWorktimeByWeek", params);

export const queryStaffReq = async (params) =>
  await Https2.post("/system/user/list", params);

export const addItemReq = async (params) =>
  await Https.post("/employee/manage/setWorktime", params, true);

export const updateItemReq = async (params) =>
  await Https.get("/tables", params, true);

export const deleteItemReq = async (params) =>
  await Https.get("/employee/manage/cancelRest", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.get("/system/user/getUserByid", params);

export const toggleStateReq = async (params) =>
  await Https.post("/employee/manage/updateUser", params);

export const sendSmsReq = async (params) =>
  await Https.get("/employee/manage/sendSms", params);
